package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.MobileSetmealDao;
import com.itheima.pojo.Setmeal;
import com.itheima.service.MobileSetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

import java.util.List;

/**
 * 体检套餐业务层接口实现类
 */
@Service(interfaceClass = MobileSetmealService.class)
@Transactional
public class MobileSetmealServiceImpl implements MobileSetmealService {

    // 注入dao层
    @Autowired
    private MobileSetmealDao mobileSetmealDao;

    // 根据id查询套餐详细信息
    @Override
    public Setmeal findById(int id) {
        return mobileSetmealDao.findById(id);
    }

    // 查询所有套餐信息
    @Override
    public List<Setmeal> findAll() {
        return mobileSetmealDao.findAll();
    }


}
